﻿using DevExpress.Spreadsheet.Functions;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;

namespace UserDefineFunction.PME.Signle
{
    public class SampleFunction : ICustomFunction
    {
        public string Name => "Sample";

        public ParameterType ReturnType => ParameterType.Value;

        //readonly ParameterInfo[] functionParameters = null;
        //public ParameterInfo[] Parameters => functionParameters;
        public ParameterInfo[] Parameters => null;

        public bool Volatile => false;

        public ParameterValue Evaluate(IList<ParameterValue> parameters, EvaluationContext context)
        {
            return "Hello";
        }

        public string GetName(CultureInfo culture)
        {
            return Name;
        }
    }
}